Skip to content

Feat add audit kyb payout#263

Merged
davedumto merged 2 commits intodavedumto:mainfrom
DioChuks:feat-add-audit-kyb-payout
Feb 26, 2026
Merged

Feat add audit kyb payout#263
davedumto merged 2 commits intodavedumto:mainfrom
DioChuks:feat-add-audit-kyb-payout

Conversation

@DioChuks
Copy link
Contributor

Description

A new GET route has been created that allows clients to check the verification status of a business entity.
It mirrors the existing KYC status endpoint and includes rate‑limiting, input validation, and a stubbed compliance helper.
A new API endpoint now lets authenticated users schedule future crypto payouts.
It stores the request in the database with a scheduledAt timestamp so a background job can process it later.
Audit already implemented.

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • Code refactoring
  • Other (please describe)

Related Issue

Closes #172
Closes #201
Closes #202

How Has This Been Tested?

curl "http://localhost:3000/api/routes-d/compliance/kyb?businessId=MY_BUSINESS_ID"
{
  "success": true,
  "data": {
    "id": "MY_BUSINESS_ID",
    "status": "PENDING",
    "message": "Verification in progress (simulation)"
  }
}
curl -X POST https://localhost:3000/api/routes-d/payouts/schedule \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
        "scheduledFor": "2026-03-01T12:00:00Z",
        "items": [
          { "amount":"10.5","recipient":"GBRPYHIL2C2...", "type":"USDC" },
          { "amount":"1000","recipient":"1234567890","type":"BANK","bankCode":"011" }
        ]
      }'

Screenshots (if applicable)

Add screenshots for UI changes

@vercel
Copy link

vercel bot commented Feb 25, 2026

@DioChuks is attempting to deploy a commit to the david's projects Team on Vercel.

A member of the Team first needs to authorize it.

@davedumto davedumto merged commit fa1c19d into davedumto:main Feb 26, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scheduled Payouts Management (D) KYB Verification Status Service (D) [AUDIT] Escrow Release: Missing Event Log

2 participants